<?php
include 'config.php';
$conn = mysql_connect($DB_HOST, $DB_USER, $DB_PASS) or die ('Error connecting to mysql');
$select = mysql_select_db($DB_NAME);
if (!$select) { echo mysql_error(); echo '<p>'; }
mysql_query("SET NAMES 'utf8'");

/*$mysqli = new mysqli($DB_HOST, $DB_USER, $DB_PASS, $DB_NAME);

if ($mysqli->connect_errno) {
    printf("Connect failed: %s\n", $mysqli->connect_error);
    exit();
}*/


?>
